package net.suntec.mrs.common;

public class Utils {
	public static int toInt( byte[] bRefArr ) {
		int iOutcome = 0;
		byte bLoop;

		for ( int i = 0; i < bRefArr.length; i++ ) {
			bLoop = bRefArr[i];
			iOutcome += ( bLoop & 0xFF ) << ( 8 * ( bRefArr.length - i - 1 ) );
		}
		return iOutcome;
	}
}
